<%@page import="com.buss.core.dic.PropertyType"%>
<%@page import="com.buss.core.dic.MenuType"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../includes/tag.jsp" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<form:form name="datamodel_edit" action="" commandName="dataModel"  style="margin-top:20px;">
	<form:hidden path="id"/>
	<form:hidden path="menu.id"/>
	<form:hidden path="listSortNum"/>
	<form:hidden path="editSortNum"/>
	<table width="100%" align="center" cellpadding="0" cellspacing="8">
	  <tr>
	  	<td align="right">属性名称：</td>
	  	<td>
	  		<form:input path="propertyName" size="30" cssClass="text"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">默认标题：</td>
	  	<td>
	  		<form:input path="defTitle" size="30" cssClass="text"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">显示标题：</td>
	  	<td>
	  		<form:input path="title" size="30" cssClass="text"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">显示类型：</td>
	  	<td>
	  		<form:select path="propertyType" itemLabel="value" style="width:188px;">
	  			<form:options items="${propertyType}" itemLabel="value"/>
	  		</form:select>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">对齐方式：</td>
	  	<td>
	  		<form:radiobuttons path="propertyAlign" itemLabel="value"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">允许排序：</td>
	  	<td>
	  		<form:radiobutton path="isSortable" label="允许" value="true"/>
	  		<form:radiobutton path="isSortable" label="不允许" value="false"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">排序属性：</td>
	  	<td>
	  		<form:input path="sortProperty" size="30" cssClass="text"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">列宽：</td>
	  	<td>
	  		<form:input path="colWidth" size="30" validator="notNull" cssClass="text"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">列表是否显示：</td>
	  	<td>
	  		<form:radiobutton path="listIsShow" label="显示" value="true"/>
	  		<form:radiobutton path="listIsShow" label="不显示" value="false"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">编辑页是否显示：</td>
	  	<td>
	  		<form:radiobutton path="editIsShow" label="显示" value="true"/>
	  		<form:radiobutton path="editIsShow" label="不显示" value="false"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">是否可编辑：</td>
	  	<td>
	  		<form:radiobutton path="isReadonly" label="可编辑" value="true"/>
	  		<form:radiobutton path="isReadonly" label="不可编辑" value="false"/>
	  	</td>
	  </tr>
	  <tr>
	  	<td align="right">用于搜索：</td>
	  	<td>
	  		<form:radiobutton path="isSearch" label="用于搜索" value="true"/>
	  		<form:radiobutton path="isSearch" label="不用于搜索" value="false"/>
	  	</td>
	  </tr>
	</table>
</form:form>
